<template>
	<div class="school">
		<h1>学校信息</h1>
		<h4>校名：{{name}}</h4>
		<h4>地址：{{address}}</h4>
		<button @click="showInfo">点我提示信息</button>
	</div>
</template>

<script>
	export default {
		name:'School',
		data() {
			return {
				name:'尚硅谷',
				address:'宏福科技园'
			}
		},
		methods: {
			showInfo(){
				alert(this.name + '-' + this.address)
			}
		},
	}
</script>

<style>
	.school{
		background-color: orange;
		padding: 20px;
	}
</style>